<html>
    <head>
        <title>for循环-vue</title>
        <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
    </head>
   <body>
       <div id="root" >
            <p v-for="(value, key) in object">
            {{ key }} : {{ value }}
         
            </p>
            <p v-for="value in object">
               {{ value }}
                </p>
         
           <p>{{name}}</p>
       </div>
       <script>
           var vm=new Vue({
               el:"#root",
               data:{
                   name:"jmc",
                   object:{
                    name:"jinmeichai",
                    age:18,
                    sex:"女",
                   },
                  
               }
           })
       </script>
   </body>
</html>